package com.hzy.fivepalace.db.dao.ex;

import com.hzy.fivepalace.db.vo.wx.WxGoodsSpecificationVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsProductMapper {
	int addStock(@Param("id") Integer id, @Param("num") Short num);

	int reduceStock(@Param("id") Integer id, @Param("num") Short num);

	int addBrowse(@Param("id") Integer id, @Param("num") Short num);

	int addSales(@Param("id") Integer id, @Param("num") Short num);


	/**
	 * 根据商品id获取规格
	 * @param goodsId
	 * @return
	 */
	List<WxGoodsSpecificationVo> getSpecificationByGoodsId(@Param("goodsId") Integer goodsId);
}
